import requests


headers = {
    "accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7",
    "accept-language": "zh-CN,zh;q=0.9,en;q=0.8,en-GB;q=0.7,en-US;q=0.6",
    "cache-control": "no-cache",
    "pragma": "no-cache",
    "priority": "u=0, i",
    "referer": "https://www.gying.org/user/register",
    "sec-ch-ua": "\"Chromium\";v=\"142\", \"Microsoft Edge\";v=\"142\", \"Not_A Brand\";v=\"99\"",
    "sec-ch-ua-mobile": "?0",
    "sec-ch-ua-platform": "\"Windows\"",
    "sec-fetch-dest": "document",
    "sec-fetch-mode": "navigate",
    "sec-fetch-site": "same-origin",
    "sec-fetch-user": "?1",
    "upgrade-insecure-requests": "1",
    "user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/142.0.0.0 Safari/537.36 Edg/142.0.0.0"
}
cookies = {
    "PHPSESSID": "g68j8jp1432dbi4607ajmr0js7",
    "BT_auth": "b6a190mbKjH9L_sBe-PvVOFvCOMT1NT_3AaAEyuMqIFZpZWVRDVeHA6Ni_tmOsXx_EVzIrcmNxZkkhqnx0CgFvIYSL6x319PYg3Iy1PDcPW5_I4RCogTpopDNyITcosH5QT_mUWpTo7cEqvgrftp7aFfmQq2pY-Fn9HsFjPGSNYbvOMMGnHf",
    "BT_cookietime": "23a4KMewkM5L2h8gKiK0Wi54-0dQnr4i0B746GyV7EQTDt_aP1B4"
}
url = "https://www.gying.org/user/login/"
# response = requests.get(url, headers=headers, cookies=cookies)
#
# print(response.text)
# print(response)


#模拟登录

session = requests.Session()

response = session.post(url, data={"username": "18436276328",
                                   "password": "hbg123666",
                                    "siteid":1,
                                    "dosubmit":1,
                                    "cookietime":10506240
                                   })
print(response.cookies)